﻿using System;
using NthDownload.Contracts.Plugins.Downloads;

namespace NthDownload.Agent.EventArguments
{
    public class DownloadOperationCompletedEventArgs : EventArgs
    {
        public DownloadOperationCompletedEventArgs(IDownload download, object stateObject, Exception error, bool aborted, bool canceled)
        {
            Download = download;
            Error = error;
            Aborted = aborted;
            Canceled = canceled;
            StateObject = stateObject;
        }

        public IDownload Download { get; private set; }
        public Exception Error { get; private set; }
        public bool Aborted { get; private set; }
        public bool Canceled { get; private set; }
        public object StateObject { get; private set; }
    }
}
